<%--
  Created by IntelliJ IDEA.
  User: leiylong
  Date: 2020/4/12
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery.min.js"></script>

</head>
<body>
<script>
    $(function () {
        $("#ui").click(
            function getJson() {
                $.ajax({
                    type: "get",
                    dataType: "json",
                    url: "test/new3",
                    success: function (data) {
                        for (var i = 0; i < jsonData.length; i++) {
                            alert("id：" + data[i].id/*+"   name："+data[i].name+"money:"+data[i].money*/);
                        }
                    },
                    error: function (e) {
                        alert(e);
                    }
                })
            })
    })
</script>
<button id="ui">测试</button>


</body>
</html>
